using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for ServerPropertiesWebPart
/// </summary>
namespace SqlWebAdmin.CSharp.Controls
{
    public class ServerPropertiesWebPart : CurrentServerWebPart
    {
        public ServerPropertiesWebPart()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        protected override void RenderWebPart(Microsoft.SqlServer.Management.Smo.Server server, HtmlTextWriter writer)
        {
            String lineFormat = "<div><b>{0}&nbsp;:&nbsp;</b>{1}</div>";
            writer.WriteLine(String.Format(lineFormat, "Server", server.Name));

        }
}
}